import vuerouter from 'vue-router'
import Vue from 'vue'
Vue.use(vuerouter)

const router = new vuerouter({
    routes: [
        {
            path: '/Home',
            name: 'Home',
            component: () => import('@/views/Home.vue')
        },
        {
            path: '/Search/:words?',
            name: 'Search',
            component: () => import('@/views/Search.vue')
        },
        {
            path:'/',redirect:'/Home'
        },
        {
            path:'*',component:NotFind
        }
    ]
})

export default router